unzip: Import 5.52 from packages and update to 6.0.
authorÁlvaro Fernández Rojas <[email protected]>
Thu, 12 Jun 2014 12:49:48 +0000 (14:49 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 12 Jun 2014 12:49:48 +0000 (14:49 +0200)
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
utils/unzip/Makefile [new file with mode: 0644]

diff --git a/utils/unzip/Makefile b/utils/unzip/Makefile
new file mode 100644 (file)
index 0000000..1628d04
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# Copyright (C) 2006-2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=unzip
+PKG_REV:=60
+PKG_VERSION:=6.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
+PKG_SOURCE_URL:=@SF/infozip
+PKG_MD5SUM:=62b490407489521db863b523a7f86375
+PKG_MAINTAINER:=Álvaro Fernández Rojas <[email protected]>
+
+PKG_LICENSE:=BSD-4-Clause
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unzip$(PKG_REV)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/unzip
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=
+  TITLE:=De-archiver for .zip files
+  URL:=http://infozip.sourceforge.net/UnZip.html
+  SUBMENU:=Compression
+endef
+
+define Package/unzip/description
+       InfoZIP's unzip program. With the exception of multi-volume archives
+       (ie, .ZIP files that are split across several disks using PKZIP's /& option),
+       this can handle any file produced either by PKZIP, or the corresponding
+       InfoZIP zip program.
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
+               $(TARGET_CONFIGURE_OPTS) \
+               prefix="$(PKG_INSTALL_DIR)/usr" \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
+               LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
+               install
+endef
+
+define Package/unzip/install
+       $(INSTALL_DIR) $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,unzip))